package com.zzttwl.locktcp.start;

import org.apache.log4j.Logger;

public class ServerStart {


	private Logger logger = Logger.getLogger(ServerStart.class);
	public void start(){
		int port = new PortService().getIniPort();
		logger.info("正在启动服务器 ，端口号："+port);
		new BindService().bind(port);
	}
	
	public static void main(String[] args){
		new ServerStart().start();
	}
}
